.chatLayout {
  height: calc(100vh - 64px - 48px);
  background: var(--content-bg);
}

.sider {
  background: transparent !important;
  margin-right: 16px;
}

.historyCard {
  height: 100%;
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(10px);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.chatContainer {
  background: transparent;
}

.chatCard {
  height: 100%;
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(10px);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.messageList {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  margin-bottom: 0;
  height: calc(100% - 70px);
}

.inputArea {
  padding: 16px;
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 0 0 8px 8px;
}

.messageWrapper {
  display: flex;
  gap: 12px;
  width: 100%;
  padding: 8px;
}

.userMessage {
  justify-content: flex-end;
}

.aiMessage {
  justify-content: flex-start;
}

.avatar {
  flex-shrink: 0;
}

.messageContent {
  max-width: 70%;
  background: #f0f2f5;
  padding: 12px 16px;
  border-radius: 8px;
}

.userMessage .messageContent {
  background: #e6f7ff;
}

.messageText {
  color: rgba(0, 0, 0, 0.85);
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.messageTime {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.45);
  margin-top: 4px;
}

/* 美化滚动条 */
.messageList::-webkit-scrollbar,
.historyCard ::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.messageList::-webkit-scrollbar-thumb,
.historyCard ::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.messageList::-webkit-scrollbar-track,
.historyCard ::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 3px;
} 